package com.by.common.fileService;

import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * @author Ye QS
 * @version 0.1
 * @className FileUploadService
 * @description
 * @date 2024/9/17 9:50
 * @since jdk11
 */

/**
 * 通用的文件上传业务
 *
 * @author 叶青松
 */
public interface FileUploadService {
    /**
     * 通用的文件上传业务
     *
     * @param file
     * @param type
     * @return
     * @throws IOException
     */
    String uploadFile(MultipartFile file, String type) throws IOException;
}
